import type { App, Directive } from 'vue'

const vFocus: Directive = {
  mounted: (el) => el.focus(),
}

export function setupFocusDirective(app: App) {
  app.directive('focus', vFocus)
}
export default vFocus
